import { Random } from "mockjs"; // 导出随机函数

function weixinLoginIn(req: any) {
  return {
    resultCode: "200",
    data: {
      success: true,
      message: "",
    },
    token: "12",
    // roles: Random.pick(["ROLE_ADMIN", "ROLE_EMPLOYEE"]),
    // roles:"ROLE_EMPLOYEE",
    roles:"ROLE_ADMIN"
  };
}

function customerLoginIn(req: any) {
  return {
    resultCode: "200",
    data: {
      success: true,
      message: "",
    },
    token: "12",
    roles: Random.pick(["ROLE_ADMIN", "ROLE_EMPLOYEE"]),
  };
}

export default {
  weixinLoginIn,
  customerLoginIn,
};
